<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Document</title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
	</head>
	<body>

		<div id="app">
			<div>{{str | lowercase | firstUppercase}}</div>
			<div>{{str|lowercase}}</div>
		</div>

		<script>
			new Vue({
				el: '#app',
				data() {
					return {
						str: 'HTML+CSS+JavaScript'
					}
				},
				filters: {
					lowercase: function(value) {
						return value.toLowerCase();
					},
					firstUppercase: function(value) {
						return value.charAt(0).toUpperCase() + value.substr(1);
					}
				}
			})
		</script>
	</body>
</html>
